package com.ask.service.businessService;

import com.ask.dto.Result;
import com.ask.entity.Shop;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IShopService extends IService<Shop> {
    Result queryById(Long id);

    public Result queryById_normal_handling(Long id);

    Result queryById_WithMutex(Long id);

    Result queryById_cache_miss_handling(Long id);

    Result queryById_with_mutex_cache_busting(Long id);

    public Result queryById_with_LogicalExpire(Long id);

    Result queryByIdWithOutRedis(Long id);

    void saveShop2Redis(Long id, Long expireSeconds) throws InterruptedException;

    Result updateWithCache(Shop shop);


    Result queryShopByType(Integer typeId, Integer current, Double x, Double y);
}
